home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ISO-8859 text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 62 73 2e 74 70 |Path: ne|ws.bs.tp|
|00000010| 6c 2e 6e 65 74 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |l.net!ne|ws.From:|
|00000020| 20 44 69 65 74 65 72 20 | 4c fc 63 6b 69 6e 67 20 | Dieter |L.cking |
|00000030| 3c 6c 75 65 63 6b 69 6e | 67 40 62 72 61 75 6e 73 |<lueckin|g@brauns|
|00000040| 63 68 77 65 69 67 2e 6e | 65 74 73 75 72 66 2e 64 |chweig.n|etsurf.d|
|00000050| 65 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |e>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 44 65 72 69 76 69 |ject: Re|: Derivi|
|00000080| 6e 67 20 63 6c 61 73 73 | 20 66 72 6f 6d 20 49 4f |ng class| from IO|
|00000090| 53 54 52 45 41 4d 73 0a | 44 61 74 65 3a 20 54 75 |STREAMs.|Date: Tu|
|000000a0| 65 2c 20 31 36 20 41 70 | 72 20 31 39 39 36 20 30 |e, 16 Ap|r 1996 0|
|000000b0| 33 3a 33 31 3a 31 34 20 | 2b 30 32 30 30 0a 4f 72 |3:31:14 |+0200.Or|
|000000c0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 49 52 44 20 |ganizati|on: IRD |
|000000d0| 49 6e 74 65 72 4e 65 74 | 20 53 65 72 76 69 63 65 |InterNet| Service|
|000000e0| 73 20 47 6d 62 48 0a 4d | 65 73 73 61 67 65 2d 49 |s GmbH.M|essage-I|
|000000f0| 44 3a 20 3c 33 31 37 32 | 46 38 36 32 2e 37 30 35 |D: <3172|F862.705|
|00000100| 33 40 62 72 61 75 6e 73 | 63 68 77 65 69 67 2e 6e |3@brauns|chweig.n|
|00000110| 65 74 73 75 72 66 2e 64 | 65 3e 0a 52 65 66 65 72 |etsurf.d|e>.Refer|
|00000120| 65 6e 63 65 73 3a 20 3c | 34 6b 75 39 71 61 24 37 |ences: <|4ku9qa$7|
|00000130| 6d 74 40 62 63 61 72 68 | 38 61 62 2e 62 6e 72 2e |mt@bcarh|8ab.bnr.|
|00000140| 63 61 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |ca>.NNTP|-Posting|
|00000150| 2d 48 6f 73 74 3a 20 70 | 6c 75 65 63 6b 69 6e 2e |-Host: p|lueckin.|
|00000160| 62 72 61 75 6e 73 63 68 | 77 65 69 67 2e 6e 65 74 |braunsch|weig.net|
|00000170| 73 75 72 66 2e 64 65 0a | 4d 69 6d 65 2d 56 65 72 |surf.de.|Mime-Ver|
|00000180| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|00000190| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|000001a0| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 75 73 2d 61 |in; char|set=us-a|
|000001b0| 73 63 69 69 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |scii.Con|tent-Tra|
|000001c0| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|000001d0| 37 62 69 74 0a 58 2d 4d | 61 69 6c 65 72 3a 20 4d |7bit.X-M|ailer: M|
|000001e0| 6f 7a 69 6c 6c 61 20 32 | 2e 30 31 20 28 57 69 6e |ozilla 2|.01 (Win|
|000001f0| 39 35 3b 20 49 29 0a 54 | 6f 3a 20 4a 69 6d 20 43 |95; I).T|o: Jim C|
|00000200| 6f 62 62 61 6e 20 3c 6a | 63 6f 62 62 61 6e 40 6e |obban <j|cobban@n|
|00000210| 6f 72 74 65 6c 2e 63 61 | 3e 0a 0a 4a 69 6d 20 43 |ortel.ca|>..Jim C|
|00000220| 6f 62 62 61 6e 20 77 72 | 6f 74 65 3a 0a 3e 20 0a |obban wr|ote:.> .|
|00000230| 3e 20 49 20 61 6d 20 74 | 72 79 69 6e 67 20 74 6f |> I am t|rying to|
|00000240| 20 64 65 66 69 6e 65 20 | 61 20 63 6c 61 73 73 20 | define |a class |
|00000250| 77 68 69 63 68 20 68 61 | 73 20 74 68 65 20 66 6f |which ha|s the fo|
|00000260| 6c 6c 6f 77 69 6e 67 20 | 63 68 61 72 61 63 74 65 |llowing |characte|
|00000270| 72 69 73 74 69 63 73 3a | 0a 3e 20 0a 3e 20 20 20 |ristics:|.> .> |
|00000280| 31 29 20 49 74 20 73 75 | 70 70 6f 72 74 73 20 74 |1) It su|pports t|
|00000290| 68 65 20 69 6e 73 65 72 | 74 69 6f 6e 20 28 3c 3c |he inser|tion (<<|
|000002a0| 29 20 6f 70 65 72 61 74 | 6f 72 20 6f 66 20 74 68 |) operat|or of th|
|000002b0| 65 20 6f 73 74 72 65 61 | 6d 20 63 6c 61 73 73 2e |e ostrea|m class.|
|000002c0| 0a 3e 20 20 20 32 29 20 | 4f 75 74 70 75 74 20 69 |.> 2) |Output i|
|000002d0| 73 20 6f 72 67 61 6e 69 | 7a 65 64 20 69 6e 74 6f |s organi|zed into|
|000002e0| 20 75 6e 69 74 73 20 6f | 66 20 77 6f 72 6b 2e 20 | units o|f work. |
|000002f0| 20 4e 6f 20 70 61 72 74 | 20 6f 66 20 61 20 75 6e | No part| of a un|
|00000300| 69 74 20 6f 66 20 77 6f | 72 6b 0a 3e 20 20 20 20 |it of wo|rk.> |
|00000310| 20 20 63 61 6e 20 62 65 | 20 77 72 69 74 74 65 6e | can be| written|
|00000320| 20 74 6f 20 74 68 65 20 | 6f 75 74 70 75 74 20 64 | to the |output d|
|00000330| 65 76 69 63 65 20 75 6e | 74 69 6c 20 74 68 65 20 |evice un|til the |
|00000340| 75 6e 69 74 20 6f 66 20 | 77 6f 72 6b 20 69 73 20 |unit of |work is |
|00000350| 63 6f 6d 70 6c 65 74 65 | 2e 0a 3e 20 20 20 20 20 |complete|..> |
|00000360| 20 54 68 65 6e 20 61 6c | 6c 20 6f 66 20 74 68 65 | Then al|l of the|
|00000370| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 75 6e 69 | text in| the uni|
|00000380| 74 20 6f 66 20 77 6f 72 | 6b 20 6d 75 73 74 20 62 |t of wor|k must b|
|00000390| 65 20 70 6c 61 63 65 64 | 20 6f 6e 20 74 68 65 20 |e placed| on the |
|000003a0| 73 61 6d 65 20 6c 69 6e | 65 0a 3e 20 20 20 20 20 |same lin|e.> |
|000003b0| 20 6f 66 20 6f 75 74 70 | 75 74 2e 20 20 49 6e 20 | of outp|ut. In |
|000003c0| 6f 74 68 65 72 20 77 6f | 72 64 73 20 69 66 20 74 |other wo|rds if t|
|000003d0| 68 65 72 65 20 69 73 20 | 65 6e 6f 75 67 68 20 72 |here is |enough r|
|000003e0| 6f 6f 6d 20 6f 6e 20 74 | 68 65 20 63 75 72 72 65 |oom on t|he curre|
|000003f0| 6e 74 20 6c 69 6e 65 0a | 3e 20 20 20 20 20 20 74 |nt line.|> t|
|00000400| 6f 20 68 6f 6c 64 20 61 | 6c 6c 20 6f 66 20 74 68 |o hold a|ll of th|
|00000410| 65 20 74 65 78 74 20 74 | 68 65 6e 20 69 74 20 77 |e text t|hen it w|
|00000420| 69 6c 6c 20 62 65 20 70 | 72 69 6e 74 65 64 20 6f |ill be p|rinted o|
|00000430| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 69 |n the cu|rrent li|
|00000440| 6e 65 2c 0a 3e 20 20 20 | 20 20 20 6f 74 68 65 72 |ne,.> | other|
|00000450| 77 69 73 65 20 61 20 6e | 65 77 20 6c 69 6e 65 20 |wise a n|ew line |
|00000460| 69 73 20 73 74 61 72 74 | 65 64 20 61 6e 64 20 74 |is start|ed and t|
|00000470| 68 65 20 74 65 78 74 20 | 69 73 20 77 72 69 74 74 |he text |is writt|
|00000480| 65 6e 20 6f 6e 20 74 68 | 65 20 6e 65 77 20 6c 69 |en on th|e new li|
|00000490| 6e 65 2e 0a 3e 20 20 20 | 33 29 20 57 68 65 6e 20 |ne..> |3) When |
|000004a0| 61 20 6e 65 77 20 6c 69 | 6e 65 20 69 73 20 73 74 |a new li|ne is st|
|000004b0| 61 72 74 65 64 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |arted, i|ncluding|
|000004c0| 20 74 68 65 20 76 65 72 | 79 20 66 69 72 73 74 20 | the ver|y first |
|000004d0| 6c 69 6e 65 20 69 6e 20 | 74 68 65 20 6f 75 74 70 |line in |the outp|
|000004e0| 75 74 2c 0a 3e 20 20 20 | 20 20 20 61 6e 20 61 70 |ut,.> | an ap|
|000004f0| 70 6c 69 63 61 74 69 6f | 6e 20 73 70 65 63 69 66 |plicatio|n specif|
|00000500| 69 65 64 20 70 72 65 66 | 69 78 20 69 73 20 77 72 |ied pref|ix is wr|
|00000510| 69 74 74 65 6e 20 62 65 | 66 6f 72 65 20 74 68 65 |itten be|fore the|
|00000520| 20 66 69 72 73 74 20 75 | 6e 69 74 20 6f 66 0a 3e | first u|nit of.>|
|00000530| 20 20 20 20 20 20 77 6f | 72 6b 2e 0a 3e 20 0a 3e | wo|rk..> .>|
|00000540| 20 54 68 65 20 66 69 72 | 73 74 20 72 65 71 75 69 | The fir|st requi|
|00000550| 72 65 6d 65 6e 74 20 64 | 69 63 74 61 74 65 73 20 |rement d|ictates |
|00000560| 74 68 61 74 20 6d 79 20 | 63 6c 61 73 73 20 62 65 |that my |class be|
|00000570| 20 64 65 72 69 76 65 64 | 20 64 69 72 65 63 74 6c | derived| directl|
|00000580| 79 20 6f 72 0a 3e 20 69 | 6e 64 69 72 65 63 74 6c |y or.> i|ndirectl|
|00000590| 79 20 66 72 6f 6d 20 6f | 73 74 72 65 61 6d 2e 20 |y from o|stream. |
|000005a0| 20 0a 0a 5b 31 5d 20 09 | 4e 6f 20 2d 20 74 68 69 | ..[1] .|No - thi|
|000005b0| 73 20 69 73 20 77 72 6f | 6e 67 20 2d 20 79 6f 75 |s is wro|ng - you|
|000005c0| 20 6d 61 79 20 75 73 65 | 20 22 6f 73 74 72 65 61 | may use| "ostrea|
|000005d0| 6d 26 20 6f 70 65 72 61 | 74 6f 72 20 3c 3c 20 28 |m& opera|tor << (|
|000005e0| 6f 73 74 72 65 61 6d 26 | 2c 20 63 6f 6e 73 74 20 |ostream&|, const |
|000005f0| 61 63 6c 61 73 73 26 29 | 3b 22 0a 20 0a 3e 20 54 |aclass&)|;". .> T|
|00000600| 68 65 20 73 65 63 6f 6e | 64 20 72 65 71 75 69 72 |he secon|d requir|
|00000610| 65 6d 65 6e 74 20 73 65 | 65 6d 73 20 74 6f 20 6d |ement se|ems to m|
|00000620| 65 20 74 6f 20 64 69 63 | 74 61 74 65 20 74 68 61 |e to dic|tate tha|
|00000630| 74 0a 3e 20 6d 79 20 63 | 6c 61 73 73 20 62 65 20 |t.> my c|lass be |
|00000640| 64 65 72 69 76 65 64 2c | 20 69 6e 20 70 61 72 74 |derived,| in part|
|00000650| 69 63 75 6c 61 72 2c 20 | 66 72 6f 6d 20 6f 73 74 |icular, |from ost|
|00000660| 72 73 74 72 65 61 6d 2c | 20 77 68 69 63 68 20 70 |rstream,| which p|
|00000670| 72 6f 76 69 64 65 73 20 | 61 20 62 75 66 66 65 72 |rovides |a buffer|
|00000680| 0a 3e 20 69 6e 20 77 68 | 69 63 68 20 6f 75 74 70 |.> in wh|ich outp|
|00000690| 75 74 20 63 61 6e 20 62 | 65 20 68 65 6c 64 20 75 |ut can b|e held u|
|000006a0| 6e 74 69 6c 20 61 20 75 | 6e 69 74 20 6f 66 20 77 |ntil a u|nit of w|
|000006b0| 6f 72 6b 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2e |ork is c|omplete.|
|000006c0| 20 20 49 20 77 6f 75 6c | 64 20 6c 69 6b 65 0a 3e | I woul|d like.>|
|000006d0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 61 20 75 6e | the end| of a un|
|000006e0| 69 74 20 6f 66 20 77 6f | 72 6b 20 74 6f 20 62 65 |it of wo|rk to be|
|000006f0| 20 73 69 67 6e 61 6c 6c | 65 64 20 62 79 20 61 20 | signall|ed by a |
|00000700| 6d 61 6e 69 70 75 6c 61 | 74 6f 72 2c 20 62 75 74 |manipula|tor, but|
|00000710| 20 49 20 68 61 76 65 20 | 68 61 64 20 61 0a 3e 20 | I have |had a.> |
|00000720| 67 72 65 61 74 20 64 65 | 61 6c 20 6f 66 20 64 69 |great de|al of di|
|00000730| 66 66 69 63 75 6c 74 79 | 20 69 6e 20 67 65 74 74 |fficulty| in gett|
|00000740| 69 6e 67 20 74 68 61 74 | 20 74 6f 20 77 6f 72 6b |ing that| to work|
|00000750| 2e 0a 3e 20 5b 2e 2e 2e | 5d 20 0a 0a 5b 32 2c 33 |..> [...|] ..[2,3|
|00000760| 5d 20 09 49 74 20 69 73 | 20 70 6f 73 73 69 62 6c |] .It is| possibl|
|00000770| 65 20 74 6f 20 75 73 65 | 20 22 6f 73 74 72 65 61 |e to use| "ostrea|
|00000780| 6d 26 20 6f 70 65 72 61 | 74 6f 72 20 3c 3c 20 28 |m& opera|tor << (|
|00000790| 6f 73 74 72 65 61 6d 26 | 2c 20 63 6f 6e 73 74 20 |ostream&|, const |
|000007a0| 61 63 6c 61 73 73 26 29 | 3b 22 2c 20 74 6f 6f 2e |aclass&)|;", too.|
|000007b0| 0a 0a 42 79 65 20 44 69 | 65 74 65 72 2e 0a 0a 0a |..Bye Di|eter....|
+--------+-------------------------+-------------------------+--------+--------+